<script>
	export default {
		onLaunch: function() {
			//获取token
			let token = uni.getStorageSync("token")
			if(!token){
				uni.reLaunch({
					url:`/subpages/user/login`
				})
			}
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-plus/index.scss";
	@import "./uni.scss";
	/* 加载框架核心样式 */
	@import "./Grace6/css/grace.scss";
	/* 加载自定义样式 */
	@import "./custom/custom.scss";

	/*加载系统自带的颜色*/
	@import "./Grace6/css/colors.css";
</style>
